<div class="categories">
  <table cellspacing="3" border="true">
    <thead>
      <tr>
        <th>
          Name
        </th>
        <th>
          Description
        </th>
    </thead>
    <tbody>
      <?php if (!empty($category)): ?>
        <?php foreach ($category as $category):?>
          <tr>
            <td class="name" >
              <?php echo $category->getName(); ?>
            </td>
            <td class="description">
              <?php echo $category->getDescription(); ?>
            </td> 
            <td class="doc_menu">
              <?php echo link_to('<img src="/images/delb.png"/>',
              'category/delete?id='.$category->getId(),
              array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
            </td>
            <td class="doc_menu">
               <a href="<?php echo url_for('category_edit', $category) ?>"><img src="/images/editb.png"/></a>
            </td>
          </tr>
        <?php endforeach; ?>
      <?php endif;?>
    </tbody>
  </table>
</div>
